Configure an SNMP Host
Configure an SNMP host so that the system can forward SNMP traps to a host for monitoring. You can use SNMPv1, SNMPv2c, or SNMPv3. You configure the target table parameters (security name and model) as part of the host configuration.
Procedure
Example
Configure the target table entry. Configure an SNMPv3 host.
Switch:1>enable Switch:1#configure terminal Switch:1(config)#snmp-server host 192.0.2.207 port 162 v2c ReadView inform timeout 1500 retries 3 mms 484 Switch:1(config)#snmp-server host 192.0.2.207 port 163 v3 authPriv Lab3 inform timeout 1500 retries 3
Variable Definitions
The following table defines parameters for the snmp-server host command.
Variable |
Value |
---|---|
inform [timeout <1-2147483647>] [retries <0-255>] [mms <0-2147483647>] |
Sends SNMP notifications as inform (rather than trap). To use all
three options in one command, you must use them in the following order:
|
filter WORD<1-32> |
Specifies the filter profile to use. |
noAuthNoPriv|authNoPriv|AuthPriv |
Specifies the security level. |
port <1-65535> |
Specifies the host server port number. |
WORD<1-32> |
Specifies the security name, which identifies the principal that generates SNMP messages. |
WORD<1-256> |
Specifies either an IPv4 or IPv6 address. |